/**
 * 
 */
package dl.args;

import java.util.ArrayList;

/**
 * @author Guiliang.Lei
 * 2009-8-19
 */
public class Argument {
	private String option=null;
	private ArrayList<String> args = new ArrayList<String>(); 
	
	public Argument(String option){
		this.option=option;
	}
	
	public String getOption(){
		return this.option;
	}
	
	public boolean addArgument(String arg) {
		if (this.args.contains(arg)) {
			return false;
		} else {
			return this.args.add(arg);
		}
	}
	
	
	public String[] getArguments(){
		return this.args.toArray(new String[this.args.size()]);
	}
	


}
